import { _decorator, Component, instantiate, Node, Prefab } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Pan')
export class Pan extends Component {
    @property(Prefab)
    Pan_Prefab: Prefab = null;
    @property(Node)
    Pan_Top_Node: Node = null;
    Pan_Node: Node = null;
    start() {

    }
    Pan_Init(Name) {
        const Pan = instantiate(this.Pan_Prefab);
        Pan.setParent(this.Pan_Top_Node);
        this.Pan_Node = Pan.getChildByName(Name);
        this.Pan_Node.active = true;
    }
    update(deltaTime: number) {
        
    }
}


